package winterTest.day10;

import java.util.Timer;
import java.util.TimerTask;

import org.junit.Test;

public class TestInnerClass {
	@Test
	public void test01() {
		InnerClass iclass = new InnerClass();
		InnerClass.Inner inner = iclass.new Inner();
		inner.printPri();
		inner.printPub();
	}
	@Test
	public void test02() {
		InnerClass iclass = new InnerClass();
		iclass.showLength(iclass.getPri());
	}
	@Test
	public void test3() throws InterruptedException {
		Timer timer = new Timer();
		timer.schedule(new TimerTask() {

			@Override
			public void run() {
				System.out.println("running...");				
			}
			
		},0, 1000);
		Thread.sleep(5000);
	}
	@Test
	public void test4() {
		InnerClass.StaticClass sClass = new InnerClass.StaticClass();
		sClass.show();
		
		InnerClass iclass =new InnerClass();
		InnerClass.StaticClass sClass2 = new InnerClass.StaticClass();
		sClass2.show();
		
	}
}

















